<html>
    <head>

        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/admin.css" />
        <script type="text/javascript" src="<?php echo base_url() ?>js/jquery.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>js/tab.js"></script>
        <script type="text/javascript" src="<?php echo base_url() ?>js/superfish/js/superfish.js"></script>
        <script type="text/javascript" src='<?= base_url() ?>js/jquery-ui.js'></script>
        <script type="text/javascript" src='<?= base_url() ?>js/jquery.form.js'></script>
        <script type="text/javascript" src='<?= base_url() ?>js/ckeditor/ckeditor.js'></script>
        <script type="text/javascript" src='<?= base_url() ?>js/admin/popup.js'></script>
        <link type="text/css" rel="stylesheet" href="<?= base_url() . 'css/jquery-ui.css' ?>" />
        <link type="text/css" rel="stylesheet" href="<?= base_url() . 'css/general.css' ?>" />
        <title>Quản trị website</title>
    </head>
    <body>
        <div id="header">
            <div class="div1">
                <div class="div2">IDT Adminstration Site</div>
            </div>
        </div>
        <div id="menu">
            <ul id="nav" style="display: none;">
                <li id="managenews"><a class="top" href="<?= base_url() . 'admin/managenews' ?>" >Quản lý tin tức</a>
                <ul>
                    <li><a  href="<?= base_url() . 'admin/managecatalogue' ?>" >Danh mục</a></li>
                    <li><a  href="<?= base_url() . 'admin/managenews' ?>" >Tin tức</a></li>
                    <li><a  href="<?= base_url() . 'admin/managepages' ?>" >Trang tĩnh</a></li>
                    <li><a  href="<?= base_url() . 'admin/page/contact_vi' ?>" >Trang contact tiếng việt</a></li>
                    <li><a  href="<?= base_url() . 'admin/page/contact_en' ?>" >Trang contact tiếng anh</a></li>
                </ul>
                </li>
		<li id="managegallery">
                    <a class="top" href="<?= base_url() . 'admin/managegallery' ?>" >Quản lý gallery</a>
                    <ul>
                        <li><a href="<?= base_url() . 'admin/managebanner' ?>">Quản lý ảnh banner</a></li>
                    </ul>
                    
                </li>
		<li id="managevideo">
                    <a class="top" href="<?= base_url() . 'admin/managevideo' ?>" >Quản lý video</a>
                </li>
                <li id="managepartner">
                    <a class="top" href="<?= base_url() . 'admin/managepartner' ?>" >Quản lý đối tác</a>
                </li>
                <li id="managecomment">
                    <a class="top" href="<?= base_url() . 'admin/managecomment' ?>" >Quản lý comments</a>
                </li>
                <li id="logout"><a class="top" href="<?= base_url() . 'admin/logout' ?>">Thoát</a></li>
            </ul>

            <script type="text/javascript"><!--
                $(document).ready(function() {
                    $('#nav').superfish({
                        hoverClass	 : 'sfHover',
                        pathClass	 : 'overideThisToUse',
                        delay		 : 0,
                        animation	 : {opacity: 'show', height: 'show'},
                        speed		 : 'fast',
                        autoArrows   : false,
                        dropShadows  : true,
                        disableHI	 : false, /* set to true to disable hoverIntent detection */
                        onInit		 : function(){},
                        onBeforeShow : function(){},
                        onShow		 : function(){},
                        onHide		 : function(){}
                    });

                    $('#nav').css('display', 'block');
                });
                //--></script>
            <script type="text/javascript">
                function getURLVar(urlVarName) {
                    var urlHalves = String(document.location).toLowerCase().split('?');
                    var urlVarValue = '';

                    if (urlHalves[1]) {
                        var urlVars = urlHalves[1].split('&');

                        for (var i = 0; i <= (urlVars.length); i++) {
                            if (urlVars[i]) {
                                var urlVarPair = urlVars[i].split('=');

                                if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase()) {
                                    urlVarValue = urlVarPair[1];
                                }
                            }
                        }
                    }

                    return urlVarValue;
                }

                $(document).ready(function() {
                    route = "<?php echo uri_string(); ?>";

                    if (!route) {
                        $('#admin').addClass('selected');
                    } else {
                        part = route.split('/');
                        $('#'+part[1]).addClass('selected');
                    }
                });
            </script>

        </div>
        <div id="container">
            <div id="content">
<script type="text/javascript">
    var APPPATH_URI = "<?=APPPATH?>";
    var SITE_URL = "<?=site_url()?>";
    var BASE_URL = "<?=base_url()?>";
    var BASE_URI = "<?=base_url()?>";
</script>
